"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(){var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")},n=function(e,t,n){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:500;e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout((function(){e.style.display=null,e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},sinatraSlideDown=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;e.style.removeProperty("display");var n=window.getComputedStyle(e).display;"none"===n&&(n="block"),e.style.display=n;var o=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=o+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout((function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")}),t)},sinatraScrollTo=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,o){return e/=o,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function o(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function i(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,o),this.easeFunctions=n({easeOutQuart:t},i)}return i.prototype.registerTrigger=function(e,t){var o=this;if(e){var i=e.getAttribute("href")||e.getAttribute("data-target"),r=i&&"#"!==i?document.getElementById(i.substring(1)):document.body,s=n(this.options,function(e,t){var n={};return Object.keys(t).forEach((function(t){var o=e.getAttribute("data-mt-".concat(t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))));o&&(n[t]=isNaN(o)?o:parseInt(o,10))})),n}(e,this.options));"function"==typeof t&&(s.callback=t);var a=function(e){e.preventDefault(),o.move(r,s)};return e.addEventListener("click",a,!1),function(){return e.removeEventListener("click",a,!1)}}},i.prototype.move=function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){i=n(this.options,i);var r,s="number"==typeof e?e:e.getBoundingClientRect().top,a=o(i.container),c=null;s-=i.tolerance;window.requestAnimationFrame((function n(l){var d=o(t.options.container);c||(c=l-1);var u=l-c;if(r&&(s>0&&r>d||s<0&&r=0&&t.item(n)!==this;);return n>-1});for(var n=[];e&&e!==document;e=e.parentNode)t?e.matches(t)&&n.push(e):n.push(e);return n};!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var sinatraTriggerEvent=function(e,t){var n=new CustomEvent(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(n)};!function(){var e=document.querySelector("#si-scroll-top"),t=document.getElementById("page"),n=function(){var e,t,n;document.body.classList.contains("sinatra-is-mobile")||(n=window.innerWidth,document.querySelectorAll(".sub-menu").forEach((function(o){o.style.visibility="visible";var i=o.getBoundingClientRect();t=i.left+window.pageXOffset,e=t+i.width,o.removeAttribute("style"),e>n?o.closest("li").classList.add("opens-left"):t<0&&o.closest("li").classList.add("opens-right")})))},o=function(e){var t;return function(){var n=arguments;t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame((function(){e.apply(this,n)}))}},i=function(){null!==e&&(window.pageYOffset>450||document.documentElement.scrollTop>450?e.classList.add("si-visible"):e.classList.remove("si-visible"))},r=function(){if(sinatra_vars["sticky-header"].enabled){var e=document.getElementById("sinatra-header"),t=document.getElementById("sinatra-header-inner"),n=document.getElementById("wpadminbar");if(document.body.classList.contains("sinatra-header-layout-3")&&(e=document.querySelector("#sinatra-header .si-nav-container"),t=document.querySelector("#sinatra-header .si-nav-container .si-container")),window.outerWidth<=sinatra_vars["responsive-breakpoint"])e=document.getElementById("sinatra-header"),t=document.getElementById("sinatra-header-inner");if(null!==e&&null!==t){var i,r,s=e.getBoundingClientRect().top,a=s-i<=0;i=null===n||window.outerWidth<=600?0:n.getBoundingClientRect().height;var c=function(){i=null===n||window.outerWidth<=600?0:n.getBoundingClientRect().height,s=e.getBoundingClientRect().top,a=s-i<=0,l()},l=function(){var n=sinatra_vars["sticky-header"].hide_on;n.includes("desktop")&&window.innerWidth>=992&&(a=!1),n.includes("tablet")&&window.innerWidth>=481&&window.innerWidth<992&&(a=!1),n.includes("mobile")&&window.innerWidth<481&&(a=!1),a?document.body.classList.contains("si-sticky-header")||((r=document.createElement("div")).setAttribute("id","si-sticky-placeholder"),r.style.height=t.getBoundingClientRect().height+"px",e.appendChild(r),document.body.classList.add("si-sticky-header"),document.body.style.setProperty("--si-sticky-h-offset",e.offsetHeight+20+"px")):(document.body.classList.contains("si-sticky-header")&&(document.body.classList.remove("si-sticky-header"),document.getElementById("si-sticky-placeholder").remove()),document.body.style.removeProperty("--si-sticky-h-offset"))};"true"!==e.getAttribute("data-scroll-listener")&&(window.addEventListener("scroll",(function(){o(c())})),e.setAttribute("data-scroll-listener","true")),"true"!==e.getAttribute("data-resize-listener")&&(window.addEventListener("resize",(function(){o(c())})),e.setAttribute("data-resize-listener","true")),sinatraTriggerEvent(window,"scroll")}}};function s(){for(var e=this;!e.classList.contains("sinatra-nav");)"li"===e.tagName.toLowerCase()&&(e.classList.contains("hovered")?e.classList.remove("hovered"):e.classList.add("hovered")),e=e.parentElement}var a=function(){document.body.style.setProperty("--si-screen-width",document.body.clientWidth+"px")},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(null!==document.getElementById("si-preloader")){var t=function(){document.body.classList.contains("si-loaded")||(document.body.classList.add("si-loading"),setTimeout((function(){document.body.classList.replace("si-loading","si-loaded"),sinatraTriggerEvent(document.body,"si-preloader-done")}),250))};return e>0?setTimeout((function(){t()}),e):t(),!1}},l=function(){window.innerWidth<=sinatra_vars["responsive-breakpoint"]?document.body.classList.add("sinatra-is-mobile"):document.body.classList.contains("sinatra-is-mobile")&&(document.body.classList.remove("sinatra-is-mobile"),sinatraTriggerEvent(document,"sinatra-close-mobile-menu"))};document.addEventListener("DOMContentLoaded",(function(){var e,o;c(5e3),document.body.classList.contains("si-menu-accessibility")&&document.querySelectorAll(".sinatra-nav").forEach((function(e){e.querySelectorAll("ul").forEach((function(e){e.parentNode.setAttribute("aria-haspopup","true")})),e.querySelectorAll("a").forEach((function(e){e.addEventListener("focus",s,!0),e.addEventListener("blur",s,!0)}))})),document.body.addEventListener("keydown",(function(e){document.body.classList.add("using-keyboard")})),document.body.addEventListener("mousedown",(function(e){document.body.classList.remove("using-keyboard")})),i(),function(){for(var e=new sinatraScrollTo({tolerance:null===document.getElementById("wpadminbar")?0:document.getElementById("wpadminbar").getBoundingClientRect().height}),t=document.getElementsByClassName("si-smooth-scroll"),n=0;n button").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),document.body.parentNode.classList.contains("is-mobile-menu-active")?i():o()}),!1)}));var o=function(t){document.body.parentNode.classList.add("is-mobile-menu-active"),document.addEventListener("keyup",s),null!==e&&e.addEventListener("click",r),document.querySelectorAll("#sinatra-header .sinatra-nav").forEach((function(e){e.addEventListener("click",a)})),sinatraSlideDown(n,350)},i=function(t){document.body.parentNode.classList.remove("is-mobile-menu-active"),document.removeEventListener("keyup",s),null!==e&&e.removeEventListener("click",r),document.querySelectorAll("#sinatra-header .sinatra-nav > ul > .si-open").forEach((function(e){c(e)})),n.style.display=null,n.querySelectorAll(".hovered").forEach((function(e){e.classList.remove("hovered")})),document.body.classList.contains("sinatra-is-mobile")&&(document.querySelectorAll("#sinatra-header .sinatra-nav").forEach((function(e){e.removeEventListener("click",a)})),sinatraSlideUp(n,250))},r=function(e){null===e.target.closest(".si-hamburger")&&null===e.target.closest(".site-navigation")&&i()},s=function(e){27==e.keyCode&&i()},a=function(e){e.target.parentElement.querySelectorAll(".sub-menu").length&&(e.preventDefault(),c(e.target.parentElement))},c=function(e){e.classList.contains("si-open")?(e.classList.remove("si-open"),e.querySelectorAll(".sub-menu").forEach((function(e){e.style.display=null})),e.querySelectorAll("li").forEach((function(e){e.classList.remove("si-open"),e.querySelectorAll(".sub-menu").forEach((function(e){e.style.display=null}))}))):(e.querySelectorAll(".sub-menu").forEach((function(t){e===t.parentElement&&(t.style.display="block")})),e.classList.add("si-open"))};document.addEventListener("sinatra-close-mobile-menu",i)}(),l(),n(),null!==(o=document.querySelector(".single .comments-link"))&&o.addEventListener("click",(function(e){document.body.classList.contains("sinatra-has-comments-toggle")&&!document.body.classList.contains("comments-visible")&&document.getElementById("sinatra-comments-toggle").click()})),function(){var e=null;document.querySelectorAll(".si-header-widget__cart .si-widget-wrapper").forEach((function(e){e.addEventListener("mouseenter",(function(){e.classList.remove("dropdown-visible")}))})),document.querySelectorAll(".si-header-widget__cart .si-widget-wrapper").forEach((function(t){t.addEventListener("mouseleave",(function(){t.classList.add("dropdown-visible"),null!==e&&(clearTimeout(e),e=null),e=setTimeout((function(){t.classList.remove("dropdown-visible")}),700)}))}))}(),r(),a()})),window.addEventListener("load",(function(){c()})),window.addEventListener("scroll",(function(){o(i())})),window.addEventListener("resize",(function(){o(n()),o(l()),o(a())})),sinatraTriggerEvent(document.body,"si-ready"),window.sinatra=window.sinatra||{},window.sinatra.preloader=c,window.sinatra.stickyHeader=r}();